home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / bbsfind1.zip / WHATEXT.ZIP / WHATEXT.DOC next >
Text File  |  1991-08-26  |  4KB  |  114 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                                    What Extension?
  10.                                   Nordevald Software
  11.                                     Copyright 1991
  12.                                  All Rights Reserved.
  13.  
  14.  
  15.  
  16.           PURPOSE:
  17.  
  18.           What Extension is  a small utility designed  to be used in  batch
  19.           files.  It will check the  filename provided to it on the command
  20.           line and  return an  errorlevel based on  the extension.   It  is
  21.           primarily  designed to  check for  compressed files;  however, it
  22.           will  test for any extension provided  the extension is specified
  23.           on the command line.
  24.  
  25.  
  26.           FORMAT:
  27.  
  28.                WHATEXT [/? or /V] <filename> [ext1] [ext2] ... [extn]
  29.  
  30.                /?          =  show help screen
  31.                /V          =  show version information
  32.                <filename>  =  filename to test, may include path
  33.                [ext]       =  optional additional extensions to test for
  34.                               will return errorlevels beginning at 10
  35.  
  36.                Errorlevels:
  37.                        -2  =  no filename sent to program
  38.                        -1  =  filename has no extension
  39.                         0  =  unknown extension
  40.                         1  =  ZIP
  41.                         2  =  LZH
  42.                         3  =  ARC
  43.                         4  =  PAK
  44.                         5  =  ZOO
  45.                         6  =  ARJ
  46.                        10  =  first optional extension on command line
  47.                         n  =  9 + nth extension on command line
  48.  
  49.           EXAMPLES:
  50.  
  51.             WHATEXT D:\DOWNLOADS\NEWFILE.ZIP    ->    Errorlevel = 1
  52.  
  53.             WHATEXT D:\NEW\SOMEFILE             ->    Errorlevel = -1
  54.  
  55.             WHATEXT THISFILE.EXE                ->    Errorlevel = 0
  56.  
  57.  
  58.           To test for additional  extensions, add them to the  command line
  59.           after  the filename. If the  filename contains one  of these, the
  60.           errorlevel returned will be  9 + the extension's position  on the
  61.           command line with the first extension being in position one.
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.           For instance, if you enter
  70.  
  71.             WHATEXT myfile.com TXT COM GIF
  72.  
  73.           WHATEXT will return an errorlevel of 11 ( TXT = 10, COM = 11, GIF
  74.           = 12 ).
  75.  
  76.  
  77.           LEGAL MUMBO JUMBO
  78.  
  79.           There is no charge for the use of the utility.
  80.  
  81.           This utility was  written in  good faith and  usage as  described
  82.           above  should not cause you any  problems, however, no warranties
  83.           apply.
  84.  
  85.           You may _freely_  share this  utility, provided the  EXE and  DOC
  86.           files remain unmodified and are distributed together.
  87.  
  88.           Vendors  may   not  distribute   this  utility  without   written
  89.           permission from Nordevald Software.
  90.  
  91.  
  92.           CONTACT
  93.  
  94.           Programmer: Marianne Love
  95.           Primary Contact: Nordevald Software BBS (author id: CASSI)
  96.  
  97.  
  98.           Authorized DCI Distribution Boards:
  99.                   Nordevald Software   813/961-0788 FLTAM 1200-9600 HST
  100.                   Bird Lake BBS        813/265-3256 FLTAM 1200-2400
  101.                   The Longbow BBS      813/265-8441 FLTAM 1200-9600 v.32
  102.                   OMNIBUS BBS          619/464-6271 CASDI 1200-9600 v.32
  103.  
  104.  
  105.           DCI BBS Software is also available  on BIX (author id: m.love) in
  106.           the  BBS Conference Listings and on GENIE (author id: M.LOVE3) in
  107.           the BBS RT Listings.
  108.  
  109.  
  110.  
  111.           WISHES
  112.  
  113.           Enjoy!
  114.